package com.gues.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.gues.eneity.Time;
import com.gues.mapper.TimeMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class TimeService {

    @Resource
    TimeMapper timeMapper;

    public List<Time> selectAllTime() {
        QueryWrapper<Time> queryWrapper = new QueryWrapper<>();
        queryWrapper.select("content", "color", "create_date");
        return timeMapper.selectList(queryWrapper);
    }
}
